package com.springboot.actuator;

import org.springframework.boot.actuate.info.Info.Builder;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

import org.springframework.boot.actuate.info.InfoContributor;

@Component
public class RuntimeInfoContributor implements InfoContributor{

    @Override
    public void contribute(Builder builder) {
        builder.withDetail("currTime", LocalDateTime.now())
                .withDetail("hello", "hi")
                .build();
    }
    
}
